<template>
  <div class="public-header">
    <div class="addmemo">
      <el-page-header @back="goBack" :content="title"> </el-page-header>
      <div class="left-btn">
        <el-input
          placeholder="请输入角色名称"
          v-model="adminName"
          class="input-with-select"
        >
          <el-button
            slot="append"
            icon="el-icon-search"
            class="search"
            @click="searchData"
          ></el-button>
        </el-input>
        <el-button
          type="success"
          icon="el-icon-plus"
          class="add-btn"
          size="medium"
          @click="addData"
          >增加</el-button
        >
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "menberTbodyPage",
  components: {},
  props: {
    title: String,
  },
  data() {
    return {
      adminName: "",
    };
  },
  methods: {
    goBack() {
      this.$router.push("/home/market/group");
    },
    searchData() {
      this.$emit("searchData", this.adminName);
    },
    addData() {
      this.$emit("addData");
    },
  },
  computed: {},
  watch: {},
};
</script>
<style lang="less" scoped>
.public-header {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  //   padding: 0 32px;
  box-sizing: border-box;
}
.addmemo {
  display: flex;
  width: 100%;
  justify-content: space-between;
  .left-btn {
    display: flex;
    justify-content: flex-end;
    width: 80%;
  }
  .el-page-header {
    display: flex;
    align-items: center;
    margin-right: 40px;
  }
  .el-input {
    width: 40%;
    margin-right: 32px;
  }
  .el-input /deep/ .el-input__inner {
    &:focus {
      border: 1px solid #4091ff;
    }
  }
  .search {
    background-color: #4091ff;
    color: #fff;
    border-radius: 0 4px 4px 0;
    border: 1px solid #4091ff;
  }
  .add-btn {
    padding: 0 12px !important;
    height: 40px;
  }
}
</style>
